package com.qk.management.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.Page;
import com.qk.common.PageResult;
import com.qk.domain.business.BusinessSelectByPageDO;
import com.qk.dto.business.BusinessFollowBusinessDTO;
import com.qk.dto.business.BusinessSelectByPageDTO;
import com.qk.dto.business.BusinessSelectPoolByPageDTO;
import com.qk.entity.Business;
import com.qk.management.mapper.BusinessMapper;
import com.qk.vo.business.BusinessVO;

/*
 *  @author SHCJ
 *  @created 2025/10/15 11:26
 *  @description
 */
public interface BusinessService extends IService<Business> {
    PageResult<BusinessSelectByPageDO> selectByPage(BusinessSelectByPageDTO businessSelectByPageDTO);

    void addBusiness(Business business);

    void assignBusiness(Integer businessId, Integer userId);

    void backToPool(Integer id);

    void businessToCustomer(Integer id);

    BusinessVO getBusinessById(Integer id);

    void followBusiness(BusinessFollowBusinessDTO dto);

    PageResult<Business> selectPoolByPage(BusinessSelectPoolByPageDTO dto);
}
